#
# Be sure to run `pod lib lint ADJgSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ADJgSDK'
  s.version          = '4.0.1.06138'
  s.summary          = 'A short description of ADJgSDK.'
  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC
  s.homepage         = 'http://www.jiguang.cn'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.authors = {"534016847@qq.com"=>"jg-ios01"}
  s.source           = { :git => 'https://gitee.com/jiguang-official/adjg-sdk-pod.git', :tag => s.version.to_s }

  s.ios.deployment_target = '12.0'

  s.frameworks = 'UIKit'
  
  s.xcconfig = {'OTHER_LDFLAGS' => '-ObjC'}

  s.dependency 'ADJgKit', '~> 0.7.6.02251'
  s.dependency 'ADJgNetwork', '~> 0.2.1.0'
  s.dependency 'ADJgLocationManager','~> 0.2.1.01301'
  s.library = 'sqlite3'
  s.static_framework = true
  s.requires_arc = true

  s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

  s.default_subspecs = 'core'

  s.subspec 'core' do |sp|
    s.vendored_frameworks = 'ADJgSDK/Classes/core/*.xcframework'
  end

  s.subspec 'ADJgSDKPlatforms' do |sp|
    sp.subspec 'gdt' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/gdt/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'GDTMobSDK', '4.15.60'
    end
    sp.subspec 'gdt-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/gdt/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end


    sp.subspec 'baidu' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/baidu/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'BaiduMobAdSDK', '10.02'
    end
    sp.subspec 'baidu-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/baidu/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end


    sp.subspec 'bu' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/bu/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'Ads-CN/BUAdSDK', '7.1.0.9'
    end
    sp.subspec 'bu-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/bu/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end


    sp.subspec 'ks' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/ks/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'KSAdSDK', '4.9.20.1'
    end
    sp.subspec 'ks-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/ks/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end


    sp.subspec 'mtg' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/mtg/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'MintegralAdSDK', '7.5.9'
      ssp.dependency 'MintegralAdSDK/NativeAd'
      ssp.dependency 'MintegralAdSDK/RewardVideoAd'
      ssp.dependency 'MintegralAdSDK/InterstitialVideoAd'
      ssp.dependency 'MintegralAdSDK/SplashAd'
      ssp.dependency 'MintegralAdSDK/BannerAd'
      ssp.dependency 'MintegralAdSDK/NativeAdvancedAd'
      ssp.dependency 'MintegralAdSDK/NewInterstitialAd' 
      ssp.dependency 'MintegralAdSDK/BidNativeAd' 
      ssp.dependency 'MintegralAdSDK/BidNewInterstitialAd' 
      ssp.dependency 'MintegralAdSDK/BidInterstitialVideoAd' 
      ssp.dependency 'MintegralAdSDK/BidRewardVideoAd' 
    end
    sp.subspec 'mtg-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/mtg/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end


    sp.subspec 'tianmu' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/tianmu/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'TianmuSDK', '3.0.3.1'
    end
    sp.subspec 'tianmu-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/tianmu/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end


    sp.subspec 'jgads' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/jg/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'JgAdsSDK', '3.0.1.2'
    end
    sp.subspec 'jgads-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/jg/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end

    sp.subspec 'jiguang' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/jiguang/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'JAd', '5.0.6'
    end
    sp.subspec 'jiguang-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/jiguang/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end

    sp.subspec 'beizi' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/beizi/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'BeiZiSDK-iOS/BeiZiSDK-iOS', '4.90.6.8'
    end
    sp.subspec 'beizi-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/beizi/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end

    sp.subspec 'huiying' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/huiying/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'HRAdSDK/HR', '1.8.4.1'
    end
    sp.subspec 'huiying-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/huiying/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end

    sp.subspec 'octopus' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/octopus/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'OctopusSDK', '2.5.9.23'
    end
    sp.subspec 'octopus-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/octopus/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end

    sp.subspec 'gromore' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/gromore/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
      ssp.dependency 'Ads-CN-Beta/CSJMediation-Only', '7.2.0.0'
    end
    sp.subspec 'gromore-without' do |ssp|
      ssp.vendored_frameworks = 'ADJgSDK/Classes/gromore/*.xcframework'
      ssp.dependency 'ADJgSDK/core'
    end
  end
end
